//
//  HSDSpidermanCustomHelper.m
//  AFNetworking
//
//  Created by 恒信博达 on 2018/3/26.
//

#import "HSDSpidermanCustomHelper.h"
#import <objc/runtime.h>

static NSString *kConstKey;

@implementation HSDSpidermanCustomHelper
- (instancetype)init {
    self = [super init];
    if (self) {
        _customModel = [[NSMutableDictionary alloc] init];
    }
    return self;
}

#pragma mark - 自定义上传数据
- (void)customInfoWithKey:(NSString *)key val:(NSString *)val {
    if (key.length == 0) return;
    NSLock *l = [NSLock new];
    [l lock];
    [_customModel setObject:val.length == 0?@"":val forKey:key];
    [l unlock];
}

@end
